コード例 #1
0
ファイル: keys.go プロジェクト: deathbearbrown/pact
/**
 * GetPublicKey
 * @return *[32]byte Byte array representation of the user's public key
 * Helper method which returns the user's public key
 */
func GetPublicKey() *[32]byte {
	return msg.ReadNACLKeyFile(GetPublicKeyPath())
}
コード例 #2
0
ファイル: keys.go プロジェクト: deathbearbrown/pact
/**
 * GetPrivateKey
 * @return *[32]byte Byte array representation of the user's private key
 * Helper method which returns the user's private key
 */
func GetPrivateKey() *[32]byte {
	return msg.ReadNACLKeyFile(GetPrivateKeyPath())
}