Esempio n. 1
0
// Address returns the StrKey encoded form of the PublicKey
func (publicKey *PublicKey) Address() string {
	return strkey.MustEncode(strkey.VersionByteAccountID, publicKey.keyData[:])
}
Esempio n. 2
0
// 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:])
}
Esempio n. 3
0
// Seed returns the strkey encoded Seed for this PrivateKey
func (privateKey *PrivateKey) Seed() string {
	return strkey.MustEncode(strkey.VersionByteSeed, privateKey.rawSeed[:])
}