Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Feb 10, 2022
1 parent 601867d commit 1f282a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rust/pkg/cardano_serialization_lib.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -2800,6 +2800,9 @@ declare export class NativeScript {
as_timelock_expiry(): TimelockExpiry | void;

/**
* Returns an array of unique Ed25519KeyHashes
* contained within this script recursively on any depth level.
* The order of the keys in the result is not determined in any way.
* @returns {Ed25519KeyHashes}
*/
get_required_signers(): Ed25519KeyHashes;
Expand Down
5 changes: 4 additions & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,10 @@ impl NativeScript {
}
}

pub fn get_required_signers(&self) -> RequiredSigners {
/// Returns an array of unique Ed25519KeyHashes
/// contained within this script recursively on any depth level.
/// The order of the keys in the result is not determined in any way.
pub fn get_required_signers(&self) -> Ed25519KeyHashes {
Ed25519KeyHashes(
RequiredSignersSet::from(self).iter()
.map(|k| { k.clone() }).collect()
Expand Down

0 comments on commit 1f282a0

Please sign in to comment.