Skip to content

ChainSafe/hashtree-z

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hashtree-z

Zig binding for hashtree

Quickstart

  • zig fetch --save=hashtree git+https://github.com/chainsafe/hashtree-z
  • In build.zig:
const hashtree = b.dependency("hashtree", .{});
const hashtree_mod = hashtree.module("hashtree");
const hashtree_lib = hashtree.artifact("hashtree");
  • Module usage:
const hashtree = @import("hashtree");

const chunks: [2][32]u8 = [_][32]u8{[_]u8{0xAB} ** 32} ** 2;
var out: [1][32]u8 = undefined;
try hashtree.hash(&out, &chunks);

License

MIT

About

Zig binding for hashtree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Zig 100.0%