common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Separator = "||"

Separator is used to delimit to end an array of bytes. The bytes are the bytes of hex-encoded string.

Variables

This section is empty.

Functions

This section is empty.

Types

type G1Array

type G1Array []*math.G1

G1Array is an array of G1 elements

func GetG1Array

func GetG1Array(elements ...[]*math.G1) *G1Array

GetG1Array takes a series of G1 elements and returns the corresponding array

func (*G1Array) Bytes

func (a *G1Array) Bytes() ([]byte, error)

Bytes serialize an array of G1 elements

type SigningIdentity

type SigningIdentity interface {
	driver.SigningIdentity
}

type WrappedSigningIdentity

type WrappedSigningIdentity struct {
	Identity driver.Identity
	Signer   driver.Signer
}

func (*WrappedSigningIdentity) Serialize

func (w *WrappedSigningIdentity) Serialize() ([]byte, error)

func (*WrappedSigningIdentity) Sign

func (w *WrappedSigningIdentity) Sign(raw []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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