Skip to content

SecretKey::secret_bytes() and Index<FullRante> for SecretKey contradict each other #724

@Kixunil

Description

@Kixunil

So we have a method named secret_bytes instead of more intuitive serialize to alert the caller that the value is secret and needs to be handled with care but at the same time we have the [..] operator to make sure extracting the bytes purposely or accidentally is as easy as possible.

We should remove one of them and I vote for removing Index.

BTW I'm quite annoyed about the unintuitive secret_bytes which I can never remember how it's called. I do understand why though and don't want to change it. I think the most we can do right now is put an alias on it. (It won't help me but maybe someone else at least.)

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