Skip to content

deserializePoolId: Invalid argument data #692

Open

Description

@jinglescode

Summary

deserializePoolId('pool107k26e3wrqxwghju2py40ngngx2qcu48ppeg7lk0cm35jl2aenx');

error:
An error occurred during resolveEd25519KeyHash: c: Invalid argument 'data': Enterprise address data length should be 29 bytes long..

Steps to reproduce the bug

deserializePoolId('pool107k26e3wrqxwghju2py40ngngx2qcu48ppeg7lk0cm35jl2aenx');

Actual Result

Expected Result

SDK version

1.9.0-beta.69

Environment type

  • Node.js
  • Browser
  • Browser Extension
  • Other

Environment details

No response

Activity

  1. added theissue type on Jul 31, 2025
  2. Kshot3000 commented on Oct 7, 2026

    @Kshot3000

    I checked this against the current release — it appears to be fixed in @meshsdk/core@1.9.1, so this issue can probably be closed.

    Reproduction from the report (SDK 1.9.0-beta.69):

    deserializePoolId("pool107k26e3wrqxwghju2py40ngngx2qcu48ppeg7lk0cm35jl2aenx");
    // threw: resolveEd25519KeyHash: ... Enterprise address data length should be 29 bytes long

    Verified today with the published 1.9.1 packages (Node, clean install):

    import { deserializePoolId } from "@meshsdk/core";
    deserializePoolId("pool107k26e3wrqxwghju2py40ngngx2qcu48ppeg7lk0cm35jl2aenx");
    // → "7facad662e180ce45e5c504957cd1341940c72a708728f7ecfc6e349"

    The CSL serializer backend returns the same value:

    new CSLSerializer().deserializer.cert.deserializePoolId(
      "pool107k26e3wrqxwghju2py40ngngx2qcu48ppeg7lk0cm35jl2aenx",
    );
    // → "7facad662e180ce45e5c504957cd1341940c72a708728f7ecfc6e349"

    Cross-check with the repo's own test vector to make sure the outputs are right, not just non-crashing: pool1lzg07gaddygem6f5ch60yv0l0g2529af87hqgw6gkqdmsfs39z9 → f890ff23ad69119de934c5f4f231ff7a154517a93fae043b48b01bb8 on both backends, matching packages/mesh-core/test/utils.test.ts.

    The current implementation decodes the pool id through the PoolId type (packages/mesh-core/src/utils/deserializer.ts) instead of routing it through address/key-hash resolution, which is what produced the 29-byte enterprise-address error in the beta.


    Independent Cardano builder — @Kshot9000 · https://x.com/kshot9000
    Tips (ADA): addr1q8hnl6vl5a6k3rw3n5g3jtte696zcl76kfatzv7gpswa9r0dj7fma6klq55y4ffm7tf0em09udnyhuk4ah92pl5x9jpqjae44v

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

    bugSomething isn't working

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions