Skip to content

ed25519PublicKeyToImplicitAccount()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / ed25519PublicKeyToImplicitAccount

Function: ed25519PublicKeyToImplicitAccount()

Section titled “Function: ed25519PublicKeyToImplicitAccount()”

ed25519PublicKeyToImplicitAccount(publicKey): string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18217

Convert ed25519 public key to NEAR implicit account ID

NEAR implicit accounts are the 64-character lowercase hex representation of the ed25519 public key (without 0x prefix).

`0x${string}`

Ed25519 public key (0x-prefixed hex)

string

NEAR implicit account ID (64 hex chars)

const accountId = ed25519PublicKeyToImplicitAccount(
'0x1234567890abcdef...'
)
// => '1234567890abcdef...' (64 chars)