Bridge Embedded Constants
Bridge constants are hard coded into the embedded.go file as network constants.
-
InitialBridgeAdministratoris the hard-coded address for the administration module, managed by the maintainers of the codebase asAddress -
MaximumFeeis the maximum fee for a wrap request asuint32; equivalent to100%fee -
MinUnhaltDurationInMomentumsis the minimum amount of time, measured in momentums, until the bridge functionality is restored from a halted state asuint64 -
MinAdministratorDelayis the minimum delay required by thetime challengeforadminoperations asuint64 -
MinSoftDelayis the minimum delay required bytime challengefor all operations excluding theadminand theguardiansasuint64 -
MinGuardiansis the minimum number of guardians required for the bridge to become operational asunit32 -
DecompressedECDSAPubKeyLengthis the size of the decompressedECDSApublic key inbytes -
CompressedECDSAPubKeyLengthis the size of the compressedECDSApublic key inbytes -
ECDSASignatureLengthis the size of theECDSAsignature inbytes -
EdDSAPubKeyLengthis the size of theEdDSApublic 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