Documentation ¶
Index ¶
- type Key
- func (k Key) GoString() string
- func (k Key) ID() string
- func (k Key) KyberPoint() kyber.Point
- func (k Key) KyberScalar() kyber.Scalar
- func (k Key) PublicKeyString() string
- func (k Key) Raw() Raw
- func (k Key) String() string
- func (k Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { PublicKey kyber.Point // contains filtered or unexported fields }
func FromEncryptedJSON ¶
FromEncryptedJSON returns a dkgencryptkey.KeyV2 from encrypted data in go-ethereum keystore format.
func MustNewXXXTestingOnly ¶
MustNewXXXTestingOnly creates a new DKGEncrypt key from the given secret key. NOTE: for testing only.
func (Key) KyberPoint ¶
func (k Key) KyberPoint() kyber.Point
KyberPoint returns the public key as a kyber.Point object
func (Key) KyberScalar ¶
func (k Key) KyberScalar() kyber.Scalar
KyberScalar returns the private key as a kyber.Scalar object
func (Key) PublicKeyString ¶
PublicKeyString returns the hex representation of this key's public key
func (Key) ToEncryptedJSON ¶
func (k Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
ToEncryptedJSON exports this key into a JSON object following the format of EncryptedDKGEncryptKeyExport
Click to show internal directories.
Click to hide internal directories.