Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

principal_id_to_address Breaking - pid.toBlob is not a function #49

Description

@qalqi

Error

TypeError: pid.toBlob is not a function

for js

import { Ed25519KeyIdentity } from '@dfinity/identity';

const keypair = Ed25519KeyIdentity.generate();
console.log(address_to_hex(principal_id_to_address(keypair.getPrincipal()))); 
//7xxxxxxxxxxxxxxxxxx

breaking with @dfinity/agent@0.9.1 and was working at @dfinity/agent@0.9.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions