radix-common 1.3.1

A library of common types and functions shared by all layers of the Radix stack, from the Radix DLT project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::crypto::PublicKey;
use crate::types::*;
use sbor::rust::prelude::*;

pub struct AuthAddresses;

impl AuthAddresses {
    pub fn signer_set<'a>(
        signer_public_keys: impl IntoIterator<Item = &'a PublicKey>,
    ) -> BTreeSet<NonFungibleGlobalId> {
        signer_public_keys
            .into_iter()
            .map(NonFungibleGlobalId::from_public_key)
            .collect()
    }
}