Documentation
¶
Index ¶
- Constants
- type Key
- func (s Key) Account() string
- func (s Key) Address() string
- func (s Key) GetPublic() ed25519.PublicKey
- func (s Key) ID() string
- func (s Key) PublicKeyStr() string
- func (s Key) Raw() internal.Raw
- func (s Key) Sign(msg []byte) ([]byte, error)
- func (s Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
Constants ¶
View Source
const Ed25519Scheme byte = 0x00
Ed25519Scheme Ed25519 signature scheme flag https://docs.sui.io/concepts/cryptography/transaction-auth/keys-addresses#address-format
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents a Sui account
func FromEncryptedJSON ¶
FromEncryptedJSON gets key from json and password
func MustNewInsecure ¶
MustNewInsecure returns an Account if no error
func (Key) Address ¶
Address returns the Sui address https://docs.sui.io/concepts/cryptography/transaction-auth/keys-addresses#address-format
func (Key) PublicKeyStr ¶
PublicKeyStr returns hex encoded public key
func (Key) ToEncryptedJSON ¶
func (s Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
Click to show internal directories.
Click to hide internal directories.