ContractMaintenanceAuthority
@midnight-ntwrk/ledger v3.0.2 β’ Readme | API
@midnight-ntwrk/ledger v3.0.2 / ContractMaintenanceAuthority
Class: ContractMaintenanceAuthority
A committee permitted to make changes to this contract. If a threshold of the public keys in this committee sign off, they can change the rules of this contract, or recompile it for a new version.
If the threshold is greater than the number of committee members, it is impossible for them to sign anything.
Constructorsβ
new ContractMaintenanceAuthority(committee, threshold, counter)β
new ContractMaintenanceAuthority(
committee,
threshold,
counter?): ContractMaintenanceAuthority
Constructs a new authority from its components
Parametersβ
β’ committee: string[]
β’ threshold: number
β’ counter?: bigint
Returnsβ
Propertiesβ
committeeβ
readonly committee: string[];
The committee public keys
counterβ
readonly counter: bigint;
The replay protection counter
thresholdβ
readonly threshold: number;
How many keys must sign rule changes
Methodsβ
serialize()β
serialize(networkid): Uint8Array
Parametersβ
β’ networkid: NetworkId
Returnsβ
Uint8Array
toString()β
toString(compact?): string
Parametersβ
β’ compact?: boolean
Returnsβ
string
deserialize()β
static deserialize(raw, networkid): ContractState
Parametersβ
β’ raw: Uint8Array
β’ networkid: NetworkId