Function sui_types::multisig::as_indices

source ·
pub fn as_indices(bitmap: u16) -> Result<Vec<u8>, SuiError>
Expand description

Interpret a bitmap of 01s as a list of indices that is set to 1s. e.g. 22 = 0b10110, then the result is [1, 2, 4].