Skip to content

bip32: can we have borrowing converters for Extended Key? #1381

Description

@pezcore

Can we add these conversion traits?

impl<K> TryFrom<&ExtendedKey> for ExtendedPrivateKey<K>
impl<K> TryFrom<&ExtendedKey> for ExtendedPublicKey<K>

We already have the non-borrowing conversion traits in 0.5.3, but it'd be nice to be able to calculate an ExtendedPrivateKey or an ExtendedPublicKey from an ExtendedKey without dropping it.

I'm willing to author PR if change is accepted

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