TypeScript icon, indicating that this package has built-in type declarations

    0.2.0 • Public • Published

    3ID Keychain DataModel

    DataModel implementation of the 3ID Keychain schema and definition specified in CIP-20.


    npm install -D @datamodels/3id-keychain


    3ID Keychain uses public-key cryptography to store a series of encrypted seeds that can be used to control a 3ID DID. This allows multiple different wallets to have the ability to authenticate to the same DID, by having control over just one of the auth secrets in the keychain.

    The 3ID Keychain stores data which allows the DID to be authenticated using any number of external wallet keys. As a result, this document allows the DID, and by extension its associated resources, to be controllable and accessible using many different wallet key pairs. Each key pair added to the document is considered an equal owner, and has the ability to add or remove any other key pairs found in the document by performing a key rotation in the users 3ID document.

    Adding a new key pair to the 3ID Keychain does not disclose a public link between that account and the DID, which serves the purpose of providing privacy to the user. If you would like to create a public link between a DID and a given cryptographic account, it would need to be achieved by additionally adding that account to a Crypto Account Links (CIP-21) document.

    A few reasons why having a multi-key, cross-chain, technology-agnostic keychain is beneficial for DIDs:

    • Simplified, seamless user experience across platforms
    • Interoperability of resources across contexts that may rely on different keys or key types
    • Integration with existing wallets already possessed by a user
    • Integration with and interoperability across many different blockchain networks, web3 technologies, and wallet providers
    • Delegate the DID "key management problem" to wallet providers
    • Resilience against DID loss, since a user could only lose control of a DID if they simultaneously lose control of all auth keys at the same time





    Dual licensed under MIT and Apache 2



    npm i @datamodels/3id-keychain

    DownloadsWeekly Downloads





    (Apache-2.0 OR MIT)

    Unpacked Size

    9.96 kB

    Total Files


    Last publish


    • paul_lecam