Versions in this module Expand all Collapse all v1 v1.0.2 Feb 17, 2026 Changes in this version + var EmptySha256Hash = new(Sha256Hash) + var ErrInvalidChainType error + var SupportedChainTypes = ChainTypes + func IsSupportedChainType(chainType ChainType) bool + func NewErrInvalidChainType(chainType ChainType) error + func RequireEqualKeys(t *testing.T, a, b interface{ ... }) + func RunKeyExportImportTestcase(t *testing.T, createKey CreateKeyFunc, decrypt DecryptFunc) + type ChainType string + const Aptos + const Cosmos + const EVM + const Offchain + const Solana + const StarkNet + const Sui + const TON + const Tron + func NewChainType(typ uint8) (ChainType, error) + func (c ChainType) Type() (uint8, error) + type ChainTypes []ChainType + func (c ChainTypes) String() (out string) + type CreateKeyFunc func() (KeyType, error) + type DecryptFunc func(keyJSON []byte, password string) (KeyType, error) + type KeyType interface + ID func() string + Raw func() internal.Raw + ToEncryptedJSON func(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error) + type Sha256Hash [32]byte + func MustSha256HashFromHex(x string) Sha256Hash + func Sha256HashFromHex(x string) (Sha256Hash, error) + func (s *Sha256Hash) MarshalText() ([]byte, error) + func (s *Sha256Hash) Scan(value any) error + func (s *Sha256Hash) UnmarshalJSON(input []byte) error + func (s *Sha256Hash) UnmarshalText(bs []byte) (err error) + func (s Sha256Hash) MarshalJSON() ([]byte, error) + func (s Sha256Hash) String() string + func (s Sha256Hash) Value() (driver.Value, error) v1.0.1 Jan 28, 2026 Changes in this version + const PrefixOCR2Onchain + const TypeCSA + const TypeOCR + var ErrInvalidExportFormat = errors.New("invalid export format") + func FromEncryptedCSAKey(data []byte, password string) ([]byte, error) + type Envelope struct + ExportFormat string + Keys []keystore.ExportKeyResponse + Type string + type OCRKeyBundle struct + ChainType string + OffchainEncryptionKey []byte + OffchainSigningKey []byte + OnchainSigningKey []byte + func FromEncryptedOCRKeyBundle(data []byte, password string) (*OCRKeyBundle, error) + type Store struct + func NewStore(ks keystore.Keystore) *Store + func (ks *Store) GenerateEncryptedCSAKey(ctx context.Context, password string) ([]byte, error) + func (ks *Store) GenerateEncryptedOCRKeyBundle(ctx context.Context, chainType string, password string) ([]byte, error)