transaction/enums

Types

pub type NetworkId {
  TestAlbatrossNetwork
  MainAlbatrossNetwork
}

Constructors

  • TestAlbatrossNetwork
  • MainAlbatrossNetwork
pub type SignatureProofAlgorithm {
  Ed25519Algorithm
  ES256Algorithm
}

Constructors

  • Ed25519Algorithm
  • ES256Algorithm
pub type TransactionFormat {
  BasicFormat
  ExtendedFormat
}

Constructors

  • BasicFormat
  • ExtendedFormat

Functions

pub fn from_network_id(network_id: NetworkId) -> Int
pub fn from_signature_algorithm(
  alg: SignatureProofAlgorithm,
) -> Int
pub fn from_transaction_format(format: TransactionFormat) -> Int
pub fn to_network_id(
  network_id: Int,
) -> Result(NetworkId, String)
pub fn to_signature_algorithm(
  alg: Int,
) -> Result(SignatureProofAlgorithm, String)
pub fn to_transaction_format(
  format: Int,
) -> Result(TransactionFormat, String)
Search Document