Skip to content

Make PublicKey API consistent #554

@dr-orlovsky

Description

@dr-orlovsky

at least expose serialize method additionally to write_into.

Original discussion: rust-bitcoin/rust-miniscript#225 (comment)

Maybe we can go even further and rename confusing serialize method in rust-secp256k1 into to_bytes method (I assume it is computationally expensive since it calls to C FFI working with internal public key representation).

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