build

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOperator

func AddOperator(values *core.GlobalValues, operatorCount int, newPubKey, newKeyHash []byte, partition string, signers ...*signing.Builder) ([]*protocol.Envelope, error)

AddOperator constructs an envelope that will add an operator to the network. If partition is non-empty, the envelope will also add the operator as a validator to the partition.

func AddToOperatorPage

func AddToOperatorPage(values *core.GlobalValues, operatorCount int, newKeyHash []byte, signers ...*signing.Builder) (*protocol.Envelope, error)

func AddValidator

func AddValidator(values *core.GlobalValues, operatorCount int, newPubKey []byte, partition string, signers ...*signing.Builder) (*protocol.Envelope, error)

func RemoveFromOperatorPage

func RemoveFromOperatorPage(values *core.GlobalValues, operatorCount int, oldKeyHash []byte, signers ...*signing.Builder) (*protocol.Envelope, error)

func RemoveOperator

func RemoveOperator(values *core.GlobalValues, operatorCount int, oldPubKey, oldKeyHash []byte, signers ...*signing.Builder) ([]*protocol.Envelope, error)

RemoveOperator constructs an envelope that will remove an operator from the network. If partition is non-empty, the envelope will also remove the operator as a validator from the partition.

func RemoveValidator

func RemoveValidator(values *core.GlobalValues, operatorCount int, oldPubKey []byte, signers ...*signing.Builder) (*protocol.Envelope, error)

func UpdateKeyOnOperatorPage

func UpdateKeyOnOperatorPage(oldKeyHash, newKeyHash []byte, signers ...*signing.Builder) (*protocol.Envelope, error)

func UpdateOperatorKey

func UpdateOperatorKey(values *core.GlobalValues, oldPubKey, oldKeyHash, newPubKey, newKeyHash []byte, signers ...*signing.Builder) ([]*protocol.Envelope, error)

UpdateOperatorKey constructs an envelope that will update an operator's key. If partition is non-empty, the envelope will also update the operator's key in the network definition.

func UpdateValidatorKey

func UpdateValidatorKey(values *core.GlobalValues, oldPubKey, newPubKey []byte, signers ...*signing.Builder) (*protocol.Envelope, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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