You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
273 B

  1. #!/usr/bin/perl
  2. BEGIN { if (-e $ENV{SITE}.'/lib') { use lib $ENV{SITE}.'/lib'; } }
  3. use TXPOOL qw(computeMerkleRoot mbase16);
  4. $TXPOOL::dbug = 1;
  5. my $a = [map { 'Z'.$_; } qw(a b c d e f g)];
  6. my $mr = &computeMerkleRoot($a);
  7. printf "mr: %s\n",mbase16($mr);
  8. exit $?;
  9. 1;