pub trait GeneralTransactionMetadataInfo {
// Required methods
fn to_json_string(
&self,
schema: MetadataJsonSchema
) -> Result<String, JsonConversionError>;
fn from_json_string(
json: &str,
schema: MetadataJsonSchema
) -> Result<Self, JsonConversionError>
where Self: Sized;
fn from_jsons(
reg_metadata: Value,
signature_metadata: Value,
schema: MetadataJsonSchema
) -> Result<Self, JsonConversionError>
where Self: Sized;
fn delegations(&self) -> Vec<u8> ⓘ;
fn stake_public_key(&self) -> PublicKey;
fn reward_address(&self) -> Address;
fn signature(&self) -> Ed25519Signature;
fn registration_blake_256_hash(&self) -> Blake2b256;
fn nonce(&self) -> i32;
}
Expand description
Extension for GeneralTransactionMetadata
tailored for Catalyst purposes
Required Methods§
sourcefn to_json_string(
&self,
schema: MetadataJsonSchema
) -> Result<String, JsonConversionError>
fn to_json_string( &self, schema: MetadataJsonSchema ) -> Result<String, JsonConversionError>
sourcefn from_json_string(
json: &str,
schema: MetadataJsonSchema
) -> Result<Self, JsonConversionError>where
Self: Sized,
fn from_json_string( json: &str, schema: MetadataJsonSchema ) -> Result<Self, JsonConversionError>where Self: Sized,
sourcefn from_jsons(
reg_metadata: Value,
signature_metadata: Value,
schema: MetadataJsonSchema
) -> Result<Self, JsonConversionError>where
Self: Sized,
fn from_jsons( reg_metadata: Value, signature_metadata: Value, schema: MetadataJsonSchema ) -> Result<Self, JsonConversionError>where Self: Sized,
sourcefn delegations(&self) -> Vec<u8> ⓘ
fn delegations(&self) -> Vec<u8> ⓘ
Get delegations part as bytes
sourcefn stake_public_key(&self) -> PublicKey
fn stake_public_key(&self) -> PublicKey
Stake public key
sourcefn reward_address(&self) -> Address
fn reward_address(&self) -> Address
Reward address
sourcefn registration_blake_256_hash(&self) -> Blake2b256
fn registration_blake_256_hash(&self) -> Blake2b256
registration metadata hash