diff --git a/rust/pkg/cardano_serialization_lib.js.flow b/rust/pkg/cardano_serialization_lib.js.flow index 9af28e4f..7e054184 100644 --- a/rust/pkg/cardano_serialization_lib.js.flow +++ b/rust/pkg/cardano_serialization_lib.js.flow @@ -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; diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 2a1cd1e5..09db52b5 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -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()