pub struct MultisigWasm { /* private fields */ }Implementations§
Source§impl MultisigWasm
impl MultisigWasm
pub fn new( private_keys: JsValue, public_keys: JsValue, m: usize, ) -> Result<MultisigWasm, JsValue>
pub fn lock(&self) -> Result<JsValue, JsValue>
pub fn sign( &self, transaction: JsValue, input_index: usize, ) -> Result<JsValue, JsValue>
pub fn sign_one( &self, transaction: JsValue, input_index: usize, private_key: JsValue, ) -> Result<JsValue, JsValue>
pub fn estimate_length(&self) -> usize
pub fn create_fake_sign(&self) -> Result<JsValue, JsValue>
pub fn build_sign_script(&self, signatures: JsValue) -> Result<JsValue, JsValue>
pub fn get_m(&self) -> usize
pub fn get_n(&self) -> usize
pub fn get_sig_hash_type(&self) -> u8
Trait Implementations§
Source§impl From<MultisigWasm> for JsValue
impl From<MultisigWasm> for JsValue
Source§fn from(value: MultisigWasm) -> Self
fn from(value: MultisigWasm) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MultisigWasm
impl FromWasmAbi for MultisigWasm
Source§impl IntoWasmAbi for MultisigWasm
impl IntoWasmAbi for MultisigWasm
Source§impl LongRefFromWasmAbi for MultisigWasm
impl LongRefFromWasmAbi for MultisigWasm
Source§type Abi = WasmPtr<WasmRefCell<MultisigWasm>>
type Abi = WasmPtr<WasmRefCell<MultisigWasm>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<MultisigWasm>
type Anchor = RcRef<MultisigWasm>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for MultisigWasm
impl OptionFromWasmAbi for MultisigWasm
Source§impl OptionIntoWasmAbi for MultisigWasm
impl OptionIntoWasmAbi for MultisigWasm
Source§impl RefFromWasmAbi for MultisigWasm
impl RefFromWasmAbi for MultisigWasm
Source§type Abi = WasmPtr<WasmRefCell<MultisigWasm>>
type Abi = WasmPtr<WasmRefCell<MultisigWasm>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<MultisigWasm>
type Anchor = RcRef<MultisigWasm>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for MultisigWasm
impl RefMutFromWasmAbi for MultisigWasm
Source§type Abi = WasmPtr<WasmRefCell<MultisigWasm>>
type Abi = WasmPtr<WasmRefCell<MultisigWasm>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<MultisigWasm>
type Anchor = RcRefMut<MultisigWasm>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for MultisigWasm
impl SupportsInstanceProperty for MultisigWasm
impl SupportsStaticProperty for MultisigWasm
Source§impl TryFromJsValue for MultisigWasm
impl TryFromJsValue for MultisigWasm
Source§impl VectorFromWasmAbi for MultisigWasm
impl VectorFromWasmAbi for MultisigWasm
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MultisigWasm]>
Source§impl VectorIntoWasmAbi for MultisigWasm
impl VectorIntoWasmAbi for MultisigWasm
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MultisigWasm]>) -> Self::Abi
Source§impl WasmDescribeVector for MultisigWasm
impl WasmDescribeVector for MultisigWasm
Auto Trait Implementations§
impl Freeze for MultisigWasm
impl RefUnwindSafe for MultisigWasm
impl Send for MultisigWasm
impl Sync for MultisigWasm
impl Unpin for MultisigWasm
impl UnsafeUnpin for MultisigWasm
impl UnwindSafe for MultisigWasm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.