Secp256k1Key
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:33
Extends
Section titled “Extends”TypedEventTarget<WalletEvents>
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Secp256k1Key(
props):Secp256k1Key
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:43
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props | Secp256k1SessionKeyProps |
Returns
Section titled “Returns”Secp256k1Key
Overrides
Section titled “Overrides”TypedEventTarget<WalletEvents>.constructor
Properties
Section titled “Properties”account
Section titled “account”account:
Account
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:38
Implementation of
Section titled “Implementation of”expiresAt
Section titled “expiresAt”expiresAt:
number|undefined
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:36
permissions
Section titled “permissions”permissions:
SessionKeyPermissions[]
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:35
type:
"secp256k1"
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:37
Implementation of
Section titled “Implementation of”Accessors
Section titled “Accessors”connected
Section titled “connected”Get Signature
Section titled “Get Signature”get connected():
boolean
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:65
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”connecting
Section titled “connecting”Get Signature
Section titled “Get Signature”get connecting():
boolean
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:61
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”addEventListener()
Section titled “addEventListener()”addEventListener<
T>(type,callback,options?):void
Defined in: node_modules/.pnpm/iso-web@2.1.0/node_modules/iso-web/dist/src/event-target/index.d.ts:29
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "error" | "connected" | "disconnected" | "connectHash" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | AddEventListenerOptions |
Returns
Section titled “Returns”void
Inherit Doc
Section titled “Inherit Doc”Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”TypedEventTarget.addEventListener
client()
Section titled “client()”client(
chain,transportConfig?):Client<Transport,Chain,Account>
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:129
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
chain | Chain |
transportConfig? | TransportConfig |
Returns
Section titled “Returns”Client<Transport, Chain, Account>
Implementation of
Section titled “Implementation of”connect()
Section titled “connect()”connect(
client):Promise<void>
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:69
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
client | Client<Transport, Chain, Account> |
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”disconnect()
Section titled “disconnect()”disconnect():
Promise<void>
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:99
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”dispatchEvent()
Section titled “dispatchEvent()”dispatchEvent(
event):boolean
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts:11575
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | Event |
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”TypedEventTarget.dispatchEvent
dispatchTypedEvent()
Section titled “dispatchTypedEvent()”dispatchTypedEvent<
T>(_type,event):boolean
Defined in: node_modules/.pnpm/iso-web@2.1.0/node_modules/iso-web/dist/src/event-target/index.d.ts:20
Dispatches a synthetic event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends keyof WalletEvents |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
_type | T |
event | WalletEvents[T] |
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”TypedEventTarget.dispatchTypedEvent
emit()
Section titled “emit()”emit<
T>(…args):boolean
Defined in: node_modules/.pnpm/iso-web@2.1.0/node_modules/iso-web/dist/src/event-target/index.d.ts:21
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends keyof WalletEvents |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args | WalletEvents[T]["detail"] extends IsAny<WalletEvents[T]["detail"]> ? [T, unknown] : [T, WalletEvents[T]["detail"]] |
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”TypedEventTarget.emit
isValid()
Section titled “isValid()”isValid(
client,permission):Promise<boolean>
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:115
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
client | Client<Transport, Chain, Account> |
permission | SessionKeyPermissions |
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”off<
T>(type,callback,options?):void
Defined in: node_modules/.pnpm/iso-web@2.1.0/node_modules/iso-web/dist/src/event-target/index.d.ts:55
Alias for TypedEventTarget.removeEventListener
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "error" | "connected" | "disconnected" | "connectHash" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | EventListenerOptions |
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”TypedEventTarget.off
on<
T>(type,callback,options?):void
Defined in: node_modules/.pnpm/iso-web@2.1.0/node_modules/iso-web/dist/src/event-target/index.d.ts:38
Alias for TypedEventTarget.addEventListener
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "error" | "connected" | "disconnected" | "connectHash" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | AddEventListenerOptions |
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”TypedEventTarget.on
refresh()
Section titled “refresh()”refresh(
client):Promise<`0x${string}`>
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:106
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
client | Client<Transport, Chain, Account> |
Returns
Section titled “Returns”Promise<`0x${string}`>
Implementation of
Section titled “Implementation of”removeEventListener()
Section titled “removeEventListener()”removeEventListener<
T>(type,callback,options?):void
Defined in: node_modules/.pnpm/iso-web@2.1.0/node_modules/iso-web/dist/src/event-target/index.d.ts:46
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "error" | "connected" | "disconnected" | "connectHash" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | EventListenerOptions |
Returns
Section titled “Returns”void
Inherit Doc
Section titled “Inherit Doc”Implementation of
Section titled “Implementation of”SessionKey.removeEventListener
Inherited from
Section titled “Inherited from”TypedEventTarget.removeEventListener
create()
Section titled “create()”
staticcreate(options?):Secp256k1Key
Defined in: packages/synapse-core/src/session-key/secp256k1.ts:52
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? | Secp256k1SessionKeyCreateOptions |
Returns
Section titled “Returns”Secp256k1Key