Documentation ¶
Index ¶
- func ReportToSigData(reportCtx types.ReportContext, report types.Report) (*big.Int, error)
- func ToEncryptedJSON(key Key, password string, scryptParams utils.ScryptParams) (export []byte, err error)
- type Key
- type OCR2Key
- func (sk *OCR2Key) Marshal() ([]byte, error)
- func (sk *OCR2Key) MaxSignatureLength() int
- func (sk *OCR2Key) PublicKey() types.OnchainPublicKey
- func (sk *OCR2Key) Sign(reportCtx types.ReportContext, report types.Report) ([]byte, error)
- func (sk *OCR2Key) Unmarshal(in []byte) error
- func (sk *OCR2Key) Verify(publicKey types.OnchainPublicKey, reportCtx types.ReportContext, ...) bool
- type PublicKey
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportToSigData ¶ added in v2.3.0
func ToEncryptedJSON ¶
func ToEncryptedJSON(key Key, password string, scryptParams utils.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
Types ¶
type Key ¶ added in v2.3.0
type Key struct {
// contains filtered or unexported fields
}
Key represents Starknet key
func FromEncryptedJSON ¶
FromEncryptedJSON gets key from json and password
func GenerateKey ¶ added in v2.3.0
reimplements parts of https://github.com/smartcontractkit/caigo/blob/main/utils.go#L85 generate the PK as a pseudo-random number in the interval [1, CurveOrder - 1] using io.Reader, and Key struct
func MustNewInsecure ¶ added in v2.3.0
MustNewInsecure return Key if no error
func (Key) StarkKeyStr ¶ added in v2.3.0
StarkKeyStr is the starknet public key associated to the private key it is the X component of the ECDSA pubkey and used in the deployment of the account contract this func is used in exporting it via CLI and API
type OCR2Key ¶ added in v2.3.0
type OCR2Key struct {
Key
}
func (*OCR2Key) MaxSignatureLength ¶ added in v2.3.0
func (*OCR2Key) PublicKey ¶ added in v2.3.0
func (sk *OCR2Key) PublicKey() types.OnchainPublicKey
Click to show internal directories.
Click to hide internal directories.