Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PadForSigning ¶
PadForSigning wraps a hash with the Flare PMW backup signing prefix.
Types ¶
type EncryptedShares ¶
type EncryptedShares struct {
}
func (*EncryptedShares) Check ¶
func (e *EncryptedShares) Check() error
Check ensures the encrypted shares meet threshold and weighting requirements.
type KeySplit ¶
type KeySplit struct {
KeySplitData
Signature []byte
}
func DecryptSplit ¶
func DecryptSplit(encryptedShare []byte, privKeyECDSA *ecdsa.PrivateKey) (*KeySplit, error)
DecryptSplit decrypts an encrypted key split and verifies its integrity.
func (*KeySplit) VerifySignature ¶
VerifySignature checks that the key split signature matches the owner key.
type KeySplitData ¶
type KeySplitData struct {
PartialWalletBackupID
OwnerPublicKey types.PublicKey
}
func (*KeySplitData) HashForSigning ¶
func (ksd *KeySplitData) HashForSigning() (common.Hash, error)
HashForSigning computes the hash used when signing the key split data.
type PartialWalletBackupID ¶
type PartialWalletBackupID struct {
wallets.WalletBackupID
PartialPubKey hexutil.Bytes
IsAdmin bool
}
func (*PartialWalletBackupID) Equal ¶
func (pwid *PartialWalletBackupID) Equal(w *PartialWalletBackupID) bool
type ShamirShare ¶
type ShamirShare struct {
}
func (*ShamirShare) ID ¶
func (s *ShamirShare) ID() string
ID returns the string identifier for the Shamir share.
type WalletBackup ¶
type WalletBackup struct {
WalletBackupMetaData
AdminEncryptedParts *EncryptedShares
ProviderEncryptedParts *EncryptedShares
Signature hexutil.Bytes
TEESignature hexutil.Bytes
}
func (*WalletBackup) Check ¶
func (wb *WalletBackup) Check() error
Check validates the metadata and share alignment in the wallet backup.
func (*WalletBackup) HashForSigning ¶
func (wb *WalletBackup) HashForSigning() (common.Hash, error)
HashForSigning produces the hash over the wallet backup content.
Click to show internal directories.
Click to hide internal directories.