merkle-reference
Version:
This is a TS library implementing [merkle reference] specification.
18 lines (14 loc) • 340 B
JavaScript
import * as Tag from './tag.js'
export const name = 'Null'
export const tag = Tag.for('merkle-structure:null')
const memory = new Uint8Array(0)
/**
*
* @param {null} _
*/
export const toBytes = (_) => memory
/**
* @param {null} value
* @return {import('./tree.js').Branch}
*/
export const toTree = (value) => [tag, toBytes(value)]