- public as_KeysInterface(): KeysInterface {
- const ret: bigint = bindings.PhantomKeysManager_as_KeysInterface(this.ptr);
- const ret_hu_conv: KeysInterface = new KeysInterface(null, ret);
+ public as_EntropySource(): EntropySource {
+ const ret: bigint = bindings.PhantomKeysManager_as_EntropySource(this.ptr);
+ const ret_hu_conv: EntropySource = new EntropySource(null, ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Constructs a new NodeSigner which calls the relevant methods on this_arg.
+ * This copies the `inner` pointer in this_arg and thus the returned NodeSigner must be freed before this_arg is
+ */
+ public as_NodeSigner(): NodeSigner {
+ const ret: bigint = bindings.PhantomKeysManager_as_NodeSigner(this.ptr);
+ const ret_hu_conv: NodeSigner = new NodeSigner(null, ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Constructs a new SignerProvider which calls the relevant methods on this_arg.
+ * This copies the `inner` pointer in this_arg and thus the returned SignerProvider must be freed before this_arg is
+ */
+ public as_SignerProvider(): SignerProvider {
+ const ret: bigint = bindings.PhantomKeysManager_as_SignerProvider(this.ptr);
+ const ret_hu_conv: SignerProvider = new SignerProvider(null, ret);