zkscrypto

package
v0.0.0-...-61460eb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

* The MIT License (MIT)

https://github.com/zksync-sdk/zksync-sdk-go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

PrivateKey represents a private key.

func NewPrivateKey

func NewPrivateKey(seed []byte) (*PrivateKey, error)

NewPrivateKey generates private key from seed

func NewPrivateKeyRaw

func NewPrivateKeyRaw(pk []byte) (*PrivateKey, error)

NewPrivateKeyRaw create private key from raw bytes

func (*PrivateKey) GetBytes

func (pk *PrivateKey) GetBytes() []byte

GetBytes return private key raw bytes

func (*PrivateKey) HexString

func (pk *PrivateKey) HexString() string

HexString creates a hex string representation of a private key

func (*PrivateKey) PublicKey

func (pk *PrivateKey) PublicKey() (*PublicKey, error)

PublicKey generates public key from private key

func (*PrivateKey) Sign

func (pk *PrivateKey) Sign(message []byte) (*Signature, error)

Sign message with musig Schnorr signature scheme

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

PublicKey represents a public key

func (*PublicKey) Hash

func (pk *PublicKey) Hash() (*PublicKeyHash, error)

Hash generates hash from public key

func (*PublicKey) HexString

func (pk *PublicKey) HexString() string

HexString creates a hex string representation of a public key

type PublicKeyHash

type PublicKeyHash struct {
	// contains filtered or unexported fields
}

PublicKeyHash represents a public key hash

func (*PublicKeyHash) HexString

func (pk *PublicKeyHash) HexString() string

HexString creates a hex string representation of a public key hash

type ResqueHash

type ResqueHash struct {
	// contains filtered or unexported fields
}

ResqueHash represents a resque hash of orders

func ResqueHashOrders

func ResqueHashOrders(orders []byte) *ResqueHash

ResqueHashOrders generates hash from orders bytes

func (*ResqueHash) GetBytes

func (rh *ResqueHash) GetBytes() []byte

GetBytes return resque hash raw bytes

type Signature

type Signature struct {
	// contains filtered or unexported fields
}

Signature represents a multi-signature

func (*Signature) HexString

func (pk *Signature) HexString() string

HexString creates a hex string representation of a signature

Jump to

Keyboard shortcuts

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