Skip to content

RotatingProofChallenge

MarcoDotIO edited this page Jul 6, 2023 · 2 revisions

RotatingProofChallenge

Used for the rotating proof challenge for the Aptos Blockchain

public struct RotatingProofChallenge 

Initializers

init(sequence_number:originator:currentAuthKey:newPublicKey:)

public init(
        sequence_number: Int,
        originator: AccountAddress,
        currentAuthKey: AccountAddress,
        newPublicKey: Data
    ) throws 

Methods

serialize(_:)

Serialize the account object using a provided Serializer object.

public func serialize(_ serializer: Serializer) throws 

This function takes a Serializer object and serializes the account object's properties, which includes the typeInfoAccountAddress, typeInfoModuleName, typeInfoStructName, sequence_number, originator, currentAuthKey and newPublicKey The Serializer object serializes values in the order specified, which is the order of the calls in this function.

Parameters

  • serializer: The Serializer object to serialize the account object with.

Throws

Any error encountered while serializing the account object's properties.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally