Documentation ¶
Index ¶
- func PubToStarkKey(pubkey starksig.PublicKey) []byte
- type Key
- func (key Key) GoString() string
- func (key Key) ID() string
- func (key Key) PublicKey() starksig.PublicKey
- func (key Key) PublicKeyStr() string
- func (key Key) Raw() Raw
- func (key Key) String() string
- func (key Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
- func (key Key) ToPrivKey() starksig.PrivateKey
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PubToStarkKey ¶
PubToStarkKey implements the pubkey to starkkey functionality: https://github.com/0xs34n/starknet.js/blob/cd61356974d355aa42f07a3d63f7ccefecbd913c/src/utils/ellipticCurve.ts#L49
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents StarkNet key
func FromEncryptedJSON ¶
FromEncryptedJSON gets key from json and password
func MustNewInsecure ¶
MustNewInsecure return Key if no error
func (Key) ToEncryptedJSON ¶
func (key Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
func (Key) ToPrivKey ¶
func (key Key) ToPrivKey() starksig.PrivateKey
ToPrivKey returns the key usable for signing.
Click to show internal directories.
Click to hide internal directories.