Skip to content

[Feat] computeblockId #11

Description

@wireless90
/**
 * Compute the block ID (Blake2b256 hash of the block bytes) of a block.
 *
 * @param block A block.
 * @returns The corresponding block ID.
 */
static blockId(block: Block): BlockId {
    return callUtilsMethod({
        name: 'blockId',
        data: {
            block,
        },
    });
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UtilsUtils methodsenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions