Skip to content

Commit 601867d

Browse files
committed
Added function get_required_signers to NativeScript
1 parent f5563ff commit 601867d

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cardano-serialization-lib",
3-
"version": "10.0.2",
3+
"version": "10.0.3",
44
"description": "(De)serialization functions for the Cardano blockchain along with related utility functions",
55
"scripts": {
66
"rust:build-nodejs": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=nodejs; wasm-pack pack) && npm run js:flowgen",

rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cardano-serialization-lib"
3-
version = "10.0.2"
3+
version = "10.0.3"
44
edition = "2018"
55
authors = ["EMURGO"]
66
license = "MIT"

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,6 +2798,11 @@ declare export class NativeScript {
27982798
* @returns {TimelockExpiry | void}
27992799
*/
28002800
as_timelock_expiry(): TimelockExpiry | void;
2801+
2802+
/**
2803+
* @returns {Ed25519KeyHashes}
2804+
*/
2805+
get_required_signers(): Ed25519KeyHashes;
28012806
}
28022807
/**
28032808
*/

rust/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,13 @@ impl NativeScript {
17241724
_ => None,
17251725
}
17261726
}
1727+
1728+
pub fn get_required_signers(&self) -> RequiredSigners {
1729+
Ed25519KeyHashes(
1730+
RequiredSignersSet::from(self).iter()
1731+
.map(|k| { k.clone() }).collect()
1732+
)
1733+
}
17271734
}
17281735

17291736
#[wasm_bindgen]

0 commit comments

Comments
 (0)