コード例 #1
0
ファイル: signing.go プロジェクト: jojopoper/horizon
// Address returns the StrKey encoded form of the PublicKey
func (publicKey *PublicKey) Address() string {
	return strkey.MustEncode(strkey.VersionByteAccountID, publicKey.keyData[:])
}
コード例 #2
0
ファイル: signing.go プロジェクト: jojopoper/horizon
// Address returns the StrKey encoded form of the PublicKey associated with this
// PrivateKey.
func (privateKey *PrivateKey) Address() string {
	return strkey.MustEncode(strkey.VersionByteAccountID, privateKey.keyData[32:])
}
コード例 #3
0
ファイル: signing.go プロジェクト: jojopoper/horizon
// Seed returns the strkey encoded Seed for this PrivateKey
func (privateKey *PrivateKey) Seed() string {
	return strkey.MustEncode(strkey.VersionByteSeed, privateKey.rawSeed[:])
}