Skip to content

Commit

Permalink
chore: remove Bytes alias
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Dec 19, 2024
1 parent 20347b2 commit 39dd384
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/bindings/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,31 @@ pub enum BabylonMsg {
/// `signer` is the address submitting the evidence
signer: String,
/// `fp_btc_pk` is the BTC PK of the finality provider that casts this vote
fp_btc_pk: Bytes,
fp_btc_pk: Vec<u8>,
/// `block_height` is the height of the conflicting blocks
block_height: u64,
/// `pub_rand is` the public randomness the finality provider has committed to.
/// Deserializes to `SchnorrPubRand`
pub_rand: Bytes,
pub_rand: Vec<u8>,
/// `canonical_app_hash` is the AppHash of the canonical block
canonical_app_hash: Bytes,
canonical_app_hash: Vec<u8>,
/// `fork_app_hash` is the AppHash of the fork block
fork_app_hash: Bytes,
/// `canonical_finality_sig` is the finality signature to the canonical block,
/// where finality signature is an EOTS signature, i.e.,
/// the `s` in a Schnorr signature `(r, s)`.
/// `r` is the public randomness already committed by the finality provider.
/// Deserializes to `SchnorrEOTSSig`
canonical_finality_sig: Bytes,
canonical_finality_sig: Vec<u8>,
/// `fork_finality_sig` is the finality signature to the fork block,
/// where finality signature is an EOTS signature.
/// Deserializes to `SchnorrEOTSSig`
fork_finality_sig: Bytes,
fork_finality_sig: Vec<u8>,
},
}

pub type BabylonSudoMsg = Empty;
pub type BabylonQuery = Empty;
pub type Bytes = Vec<u8>;

// make BabylonMsg to implement CosmosMsg::CustomMsg
impl cosmwasm_std::CustomMsg for BabylonMsg {}
Expand Down

0 comments on commit 39dd384

Please sign in to comment.