Documentation ¶
Index ¶
- func AddOperator(values *core.GlobalValues, operatorCount int, newPubKey, newKeyHash []byte, ...) ([]*protocol.Envelope, error)
- func AddToOperatorPage(values *core.GlobalValues, operatorCount int, newKeyHash []byte, ...) (*protocol.Envelope, error)
- func AddValidator(values *core.GlobalValues, operatorCount int, newPubKey []byte, ...) (*protocol.Envelope, error)
- func RemoveFromOperatorPage(values *core.GlobalValues, operatorCount int, oldKeyHash []byte, ...) (*protocol.Envelope, error)
- func RemoveOperator(values *core.GlobalValues, operatorCount int, oldPubKey, oldKeyHash []byte, ...) ([]*protocol.Envelope, error)
- func RemoveValidator(values *core.GlobalValues, operatorCount int, oldPubKey []byte, ...) (*protocol.Envelope, error)
- func UpdateKeyOnOperatorPage(oldKeyHash, newKeyHash []byte, signers ...*signing.Builder) (*protocol.Envelope, error)
- func UpdateOperatorKey(values *core.GlobalValues, oldPubKey, oldKeyHash, newPubKey, newKeyHash []byte, ...) ([]*protocol.Envelope, error)
- func UpdateValidatorKey(values *core.GlobalValues, oldPubKey, newPubKey []byte, partition string, ...) (*protocol.Envelope, error)
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 AddValidator ¶
func RemoveFromOperatorPage ¶
func RemoveOperator ¶
func RemoveOperator(values *core.GlobalValues, operatorCount int, oldPubKey, oldKeyHash []byte, partition string, 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 UpdateKeyOnOperatorPage ¶
func UpdateOperatorKey ¶
func UpdateOperatorKey(values *core.GlobalValues, oldPubKey, oldKeyHash, newPubKey, newKeyHash []byte, partition string, 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.