forked from Chia-Network/go-chia-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keychain.go
25 lines (21 loc) · 827 Bytes
/
keychain.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package types
import (
"github.com/samber/mo"
)
// PrivateKey is a chik_rs type that represents a private key
type PrivateKey struct {
// @TODO CHIK_RS BINDINGS: Add when we have the rust -> go bindings
}
// KeyDataSecrets contains the secret portion of key data
type KeyDataSecrets struct {
Mnemonic []string `json:"mnemonic" streamable:""`
Entropy []byte `json:"entropy" streamable:""`
PrivateKey PrivateKey `json:"PrivateKey" streamable:""`
}
// KeyData is the KeyData type from chik-blockchain
type KeyData struct {
Fingerprint uint32 `json:"fingerprint" streamable:""`
PublicKey G1Element `json:"public_key" streamable:""`
Label mo.Option[string] `json:"label" streamable:""`
Secrets mo.Option[KeyDataSecrets] `json:"secrets" streamable:""`
}