We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00b9003 + e455636 commit ca60da2Copy full SHA for ca60da2
src/descriptor/mod.rs
@@ -1448,7 +1448,10 @@ pub struct SortedMultiVec<Pk: MiniscriptKey, Ctx: ScriptContext> {
1448
}
1449
1450
impl<Pk: MiniscriptKey, Ctx: ScriptContext> SortedMultiVec<Pk, Ctx> {
1451
- fn new(k: usize, pks: Vec<Pk>) -> Result<Self, Error> {
+ /// Create a new instance of `SortedMultiVec` given a list of keys and the threshold
1452
+ ///
1453
+ /// Internally checks all the applicable size limits and pubkey types limitations according to the current `Ctx`.
1454
+ pub fn new(k: usize, pks: Vec<Pk>) -> Result<Self, Error> {
1455
// Check the limits before creating a new SortedMultiVec
1456
// For example, under p2sh context the scriptlen can only be
1457
// upto 520 bytes.
0 commit comments