Skip to content

convert_bits Iterator #81

Closed
Closed
@TheBlueMatt

Description

@TheBlueMatt

When writing out an object as a bech32 string via fmt it seems we currently have to first encode the [u8] into a Vec<u5> and only then we can call encode_without_checksum_to_fmt. This is a bit wasteful, ISTM it wouldn't take a whole log of change to build a version of convert_bits that returns an iterator rather than a Vec, and allows avoiding the intermediate allocation.

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