Versions in this module Expand all Collapse all v0 v0.0.2 Mar 12, 2021 Changes in this version + var ErrScalarTooBig = errors.Errorf("can't handle scalars greater than %d", curve25519.PointSize) + type ConfigPublicKey [curve25519.PointSize]byte + func (cpk *ConfigPublicKey) Scan(value interface{}) error + func (cpk *ConfigPublicKey) UnmarshalJSON(input []byte) error + func (cpk *ConfigPublicKey) UnmarshalText(bs []byte) error + func (cpk ConfigPublicKey) MarshalJSON() ([]byte, error) + func (cpk ConfigPublicKey) Raw() string + func (cpk ConfigPublicKey) String() string + func (cpk ConfigPublicKey) Value() (driver.Value, error) + type EncryptedKeyBundle struct + ConfigPublicKey ConfigPublicKey + CreatedAt time.Time + DeletedAt gorm.DeletedAt + EncryptedPrivateKeys []byte + ID models.Sha256Hash + OffChainPublicKey OffChainPublicKey + OnChainSigningAddress OnChainSigningAddress + UpdatedAt time.Time + func (EncryptedKeyBundle) TableName() string + func (ekb *EncryptedKeyBundle) Decrypt(auth string) (*KeyBundle, error) + func (ekb *EncryptedKeyBundle) SetID(value string) error + func (ekb EncryptedKeyBundle) GetID() string + type EncryptedOCRKeyExport struct + ConfigPublicKey ConfigPublicKey + Crypto keystore.CryptoJSON + ID models.Sha256Hash + OffChainPublicKey OffChainPublicKey + OnChainSigningAddress OnChainSigningAddress + func (export EncryptedOCRKeyExport) DecryptPrivateKey(auth string) (*KeyBundle, error) + type KeyBundle struct + ID models.Sha256Hash + func NewKeyBundle() (*KeyBundle, error) + func NewKeyBundleFrom(onChainSigning io.Reader, offChainSigning io.Reader, ...) (*KeyBundle, error) + func (pk *KeyBundle) ConfigDiffieHellman(base *[curve25519.PointSize]byte) (sharedPoint *[curve25519.PointSize]byte, err error) + func (pk *KeyBundle) Encrypt(auth string, scryptParams utils.ScryptParams) (*EncryptedKeyBundle, error) + func (pk *KeyBundle) MarshalJSON() ([]byte, error) + func (pk *KeyBundle) PublicKeyAddressOnChain() ocrtypes.OnChainSigningAddress + func (pk *KeyBundle) PublicKeyConfig() [curve25519.PointSize]byte + func (pk *KeyBundle) PublicKeyOffChain() ocrtypes.OffchainPublicKey + func (pk *KeyBundle) SignOffChain(msg []byte) (signature []byte, err error) + func (pk *KeyBundle) SignOnChain(msg []byte) (signature []byte, err error) + func (pk *KeyBundle) ToEncryptedExport(auth string, scryptParams utils.ScryptParams) (export []byte, err error) + func (pk *KeyBundle) UnmarshalJSON(b []byte) (err error) + func (pk KeyBundle) GoStringer() string + func (pk KeyBundle) String() string + type OffChainPublicKey ed25519.PublicKey + func (OffChainPublicKey) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (OffChainPublicKey) GormDataType() string + func (ocpk *OffChainPublicKey) Scan(value interface{}) error + func (ocpk *OffChainPublicKey) UnmarshalJSON(input []byte) error + func (ocpk *OffChainPublicKey) UnmarshalText(bs []byte) error + func (ocpk OffChainPublicKey) MarshalJSON() ([]byte, error) + func (ocpk OffChainPublicKey) Raw() string + func (ocpk OffChainPublicKey) String() string + func (ocpk OffChainPublicKey) Value() (driver.Value, error) + type OnChainPublicKey ecdsa.PublicKey + func (k OnChainPublicKey) Address() OnChainSigningAddress + type OnChainSigningAddress ocrtypes.OnChainSigningAddress + func (ocsa *OnChainSigningAddress) Scan(value interface{}) error + func (ocsa *OnChainSigningAddress) UnmarshalJSON(input []byte) error + func (ocsa *OnChainSigningAddress) UnmarshalText(bs []byte) error + func (ocsa OnChainSigningAddress) MarshalJSON() ([]byte, error) + func (ocsa OnChainSigningAddress) String() string + func (ocsa OnChainSigningAddress) Value() (driver.Value, error)