Skip to main content

ValidatorMetadataV1

ValidatorMetadataV1

class ValidatorMetadataV1

A typed view of a 0x3::validator::ValidatorMetadataV1.

debugDescription

var debugDescription: String { get }

A textual representation of this instance, suitable for debugging.

Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the String(reflecting:) initializer. This initializer works with any type, and uses the custom debugDescription property for types that conform to CustomDebugStringConvertible:

struct Point: CustomDebugStringConvertible {
let x: Int, y: Int

var debugDescription: String {
return "(\(x), \(y))"
}
}

let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"

The conversion of p to a string in the assignment to s uses the Point type's debugDescription property.

authorityPubkeyBytes()

func authorityPubkeyBytes() -> Data

Public key bytes for signing transactions (also serves as the authority name).

description()

func description() -> String

imageUrl()

func imageUrl() -> String

iotaAddress()

func iotaAddress() -> Address

The IOTA address of the validator.

name()

func name() -> String

A unique human-readable validator name.

netAddress()

func netAddress() -> String

Network address of the validator.

networkPubkeyBytes()

func networkPubkeyBytes() -> Data

Public key bytes for TLS connections.

nextEpochAuthorityPubkeyBytes()

func nextEpochAuthorityPubkeyBytes() -> Data?

next_epoch_* metadata only takes effect in the next epoch. If None, the current value stays unchanged.

nextEpochNetAddress()

func nextEpochNetAddress() -> String?

nextEpochNetworkPubkeyBytes()

func nextEpochNetworkPubkeyBytes() -> Data?

nextEpochP2pAddress()

func nextEpochP2pAddress() -> String?

nextEpochPrimaryAddress()

func nextEpochPrimaryAddress() -> String?

nextEpochProofOfPossession()

func nextEpochProofOfPossession() -> Data?

nextEpochProtocolPubkeyBytes()

func nextEpochProtocolPubkeyBytes() -> Data?

p2pAddress()

func p2pAddress() -> String

Address of the validator used for p2p activities such as state sync.

primaryAddress()

func primaryAddress() -> String

Primary address of the consensus.

projectUrl()

func projectUrl() -> String

proofOfPossession()

func proofOfPossession() -> Data

Proof that the validator owns the private key.

protocolPubkeyBytes()

func protocolPubkeyBytes() -> Data

Public key bytes for signing consensus blocks.