Documentation ¶
Index ¶
- Constants
- Variables
- func Bool(b bool) *bool
- type AccountID
- type BigInt
- func (i *BigInt) Add(x, y *BigInt) *BigInt
- func (i *BigInt) Bytes() []byte
- func (i *BigInt) Equal(j *BigInt) bool
- func (i *BigInt) GobDecode(buf []byte) error
- func (i *BigInt) GobEncode() ([]byte, error)
- func (i *BigInt) MarshalText() ([]byte, error)
- func (i *BigInt) MathBigInt() *big.Int
- func (i *BigInt) Mul(x, y *BigInt) *BigInt
- func (i *BigInt) SetBytes(buf []byte) *BigInt
- func (i *BigInt) SetUint64(x uint64) *BigInt
- func (i *BigInt) String() string
- func (i *BigInt) Sub(x, y *BigInt) *BigInt
- func (i *BigInt) UnmarshalText(data []byte) error
- type CensusRoot
- type DataStore
- type EntityID
- type Hash
- type HexBytes
- type Nullifier
- type ProcessID
Constants ¶
View Source
const ( // ModeMiner starts vocdoninode as a miner. ModeMiner = "miner" // ModeSeed starts vocdoninode as a seed node. ModeSeed = "seed" // ModeGateway starts the vocdoninode as a gateway. ModeGateway = "gateway" // ModeCensus starts the vocdoninode as a census only service. ModeCensus = "census" // ProcessIDsize is the size of a process id. ProcessIDsize = 32 // EthereumAddressSize is the size of an ethereum address. EthereumAddressSize = 20 // EntityIDsize is the size of an entity id (ethereum address). EntityIDsize = EthereumAddressSize // ArchiveURL is the default URL where the archive is retrieved from. ArchiveURL = "/ipns/k2k4r8otxrf176h1i08txap0ep6ynr1jac0vymozi068eedml7gk1595" // DefaultBlockTime is the default block time in seconds. DefaultBlockTime = 12 * time.Second // KeyKeeperMaxKeyIndex is the maxim number of allowed encryption keys. KeyKeeperMaxKeyIndex = 16 // ProcessesContractMaxEnvelopeType represents the max value that a uint8 can have // with the current smart contract bitmask describing the supported envelope types. ProcessesContractMaxEnvelopeType = 31 // MaxURLLength is the maximum length of a URL string used in the protocol. MaxURLLength = 2083 )
Variables ¶
View Source
var ( False = Bool(false) True = Bool(true) )
These exported variables should be treated as constants, to be used in API responses which require *bool fields.
Functions ¶
Types ¶
type BigInt ¶ added in v1.3.0
BigInt is a big.Int wrapper which marshals JSON to a string representation of the big number. Note that a nil pointer value marshals as the empty string.
func (*BigInt) MarshalText ¶ added in v1.3.0
func (*BigInt) MathBigInt ¶ added in v1.4.0
MathBigInt converts b to a math/big *Int.
func (*BigInt) UnmarshalText ¶ added in v1.3.0
type CensusRoot ¶ added in v1.3.0
type CensusRoot = []byte
type HexBytes ¶
type HexBytes []byte
HexBytes is a []byte which encodes as hexadecimal in json, as opposed to the base64 default.
func HexStringToHexBytes ¶ added in v1.6.0
HexStringToHexBytes converts a hex string to a HexBytes. It strips a leading '0x' or '0X' if found, for backwards compatibility. Panics if the string is not a valid hex string.
func (HexBytes) MarshalJSON ¶
func (*HexBytes) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.