Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/src/core/libs/cardano_multiplatform_lib/cardano_multiplatform_lib.generated.js>PublicKey

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Go to Latest
class PublicKey
import { PublicKey } from "https://deno.land/x/lucid@0.10.0/src/core/libs/cardano_multiplatform_lib/cardano_multiplatform_lib.generated.js";

ED25519 key used as public key

Static Methods

__wrap(ptr)
from_bech32(bech32_str)

Get public key from its bech32 representation Example:

const pkey = PublicKey.from_bech32('ed25519_pk1dgaagyh470y66p899txcl3r0jaeaxu6yd7z2dxyk55qcycdml8gszkxze2');
from_bytes(bytes)