You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
559 B
23 lines
559 B
package data |
|
|
|
// GetPublicKey will return the public key. |
|
func GetPublicKey() string { |
|
value, _ := _datastore.GetString(publicKeyKey) |
|
return value |
|
} |
|
|
|
// SetPublicKey will save the public key. |
|
func SetPublicKey(key string) error { |
|
return _datastore.SetString(publicKeyKey, key) |
|
} |
|
|
|
// GetPrivateKey will return the private key. |
|
func GetPrivateKey() string { |
|
value, _ := _datastore.GetString(privateKeyKey) |
|
return value |
|
} |
|
|
|
// SetPrivateKey will save the private key. |
|
func SetPrivateKey(key string) error { |
|
return _datastore.SetString(privateKeyKey, key) |
|
}
|
|
|