Bridge Embedded Constants
Bridge constants are hard coded into the embedded.go
file as network constants.
-
InitialBridgeAdministrator
is the hard-coded address for the administration module, managed by the maintainers of the codebase asAddress
-
MaximumFee
is the maximum fee for a wrap request asuint32
; equivalent to100%
fee -
MinUnhaltDurationInMomentums
is the minimum amount of time, measured in momentums, until the bridge functionality is restored from a halted state asuint64
-
MinAdministratorDelay
is the minimum delay required by thetime challenge
foradmin
operations asuint64
-
MinSoftDelay
is the minimum delay required bytime challenge
for all operations excluding theadmin
and theguardians
asuint64
-
MinGuardians
is the minimum number of guardians required for the bridge to become operational asunit32
-
DecompressedECDSAPubKeyLength
is the size of the decompressedECDSA
public key inbytes
-
CompressedECDSAPubKeyLength
is the size of the compressedECDSA
public key inbytes
-
ECDSASignatureLength
is the size of theECDSA
signature inbytes
-
EdDSAPubKeyLength
is the size of theEdDSA
public key inbytes
InitialBridgeAdministrator = types.ParseAddressPanic("z1qz8q0x3rs36z2kw8eltf8r323hlcn64jnujkuz")
MaximumFee = uint32(10000)
MinUnhaltDurationInMomentums = uint64(6 * MomentumsPerHour) //main net
MinAdministratorDelay = uint64(2 * MomentumsPerEpoch) // main net
MinSoftDelay = uint64(MomentumsPerEpoch) // main net
MinGuardians = 5
DecompressedECDSAPubKeyLength = 65
CompressedECDSAPubKeyLength = 33
ECDSASignatureLength = 65
EdDSAPubKeyLength = 32