diff --git a/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs b/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs index a0cd41118db..67c5f2cc687 100644 --- a/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs +++ b/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs @@ -83,6 +83,11 @@ impl DocumentCreateTransitionWasm { INITIAL_REVISION as u32 } + #[wasm_bindgen(js_name = getEntropy)] + pub fn get_entropy(&self) -> Vec { + Vec::from(self.inner.entropy()) + } + #[wasm_bindgen(js_name=getIdentityContractNonce)] pub fn get_identity_contract_nonce(&self) -> u64 { self.inner.base().identity_contract_nonce() as u64 diff --git a/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_delete_transition.rs b/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_delete_transition.rs index 762e1fdb9a5..72614992e95 100644 --- a/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_delete_transition.rs +++ b/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_delete_transition.rs @@ -68,6 +68,11 @@ impl DocumentDeleteTransitionWasm { self.inner.base().document_type_name().clone() } + #[wasm_bindgen(js_name = getEntropy)] + pub fn get_entropy(&self) -> Vec { + Vec::from(self.inner.entropy()) + } + #[wasm_bindgen(js_name=getDataContractId)] pub fn data_contract_id(&self) -> IdentifierWrapper { self.inner.base().data_contract_id().into() diff --git a/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_replace_transition.rs b/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_replace_transition.rs index af5711e9cd0..7ec0bf00e59 100644 --- a/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_replace_transition.rs +++ b/packages/wasm-dpp/src/document/state_transition/document_batch_transition/document_transition/document_replace_transition.rs @@ -96,6 +96,11 @@ impl DocumentReplaceTransitionWasm { self.inner.revision() } + #[wasm_bindgen(js_name = getEntropy)] + pub fn get_entropy(&self) -> Vec { + Vec::from(self.inner.entropy()) + } + #[wasm_bindgen(js_name=getUpdatedAt)] pub fn updated_at(&self) -> Option { self.inner