Skip to content

[Feat] computeblockId #11

@wireless90

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,
        },
    });
}

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