corekeys

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

`corekeys` provides utilities to generate keys that are compatible with the core node and can be imported by it.

Index

Constants

View Source
const (
	TypeOCR           = "ocr"
	PrefixOCR2Onchain = "ocr2_onchain"
)
View Source
const (
	TypeCSA = "csa"
)

Variables

View Source
var (
	ErrInvalidExportFormat = errors.New("invalid export format")
)

Functions

func FromEncryptedCSAKey

func FromEncryptedCSAKey(data []byte, password string) ([]byte, error)

Types

type Envelope

type Envelope struct {
	Type         string
	Keys         []keystore.ExportKeyResponse
	ExportFormat string
}

type OCRKeyBundle

type OCRKeyBundle struct {
	ChainType             string
	OffchainSigningKey    []byte
	OffchainEncryptionKey []byte
	OnchainSigningKey     []byte
}

func FromEncryptedOCRKeyBundle

func FromEncryptedOCRKeyBundle(data []byte, password string) (*OCRKeyBundle, error)

type Store

type Store struct {
	keystore.Keystore
}

func NewStore

func NewStore(ks keystore.Keystore) *Store

func (*Store) GenerateEncryptedCSAKey

func (ks *Store) GenerateEncryptedCSAKey(ctx context.Context, password string) ([]byte, error)

func (*Store) GenerateEncryptedOCRKeyBundle

func (ks *Store) GenerateEncryptedOCRKeyBundle(ctx context.Context, chainType string, password string) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL