signer

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainValidatorSetString      = "DOMAIN_CHILD_VALIDATOR_SET"
	DomainCheckpointManagerString = "DOMAIN_CHECKPOINT_MANAGER"
	DomainCommonSigningString     = "DOMAIN_COMMON_SIGNING"
	DomainStateReceiverString     = "DOMAIN_STATE_RECEIVER"
)

Variables

View Source
var (
	// domain used to map hash to G1 used by (child) validator set
	DomainValidatorSet = crypto.Keccak256([]byte(DomainValidatorSetString))

	// domain used to map hash to G1 used by child checkpoint manager
	DomainCheckpointManager = crypto.Keccak256([]byte(DomainCheckpointManagerString))

	DomainCommonSigning = crypto.Keccak256([]byte(DomainCommonSigningString))
	DomainStateReceiver = crypto.Keccak256([]byte(DomainStateReceiverString))
)

Functions

func MakeKOSKSignature added in v0.9.0

func MakeKOSKSignature(privateKey *bls.PrivateKey, address types.Address,
	chainID int64, domain []byte, supernetManagerAddr types.Address) (*bls.Signature, error)

MakeKOSKSignature creates KOSK signature which prevents rogue attack

Types

This section is empty.

Jump to

Keyboard shortcuts

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