dart_minimaldata 1.0.0 copy "dart_minimaldata: ^1.0.0" to clipboard
dart_minimaldata: ^1.0.0 copied to clipboard

Following BIP62.3, this module validates that a script uses only minimal data pushes.

dart_minimaldata #

Following BIP62.3, this module validates that a script uses only minimal data pushes.

Example #

import 'dart:typed_data';

import 'package:dart_minimaldata/dart_minimaldata.dart';

void main() {
  // OP_PUSHDATA4, 1 byte
  Uint8List script = Uint8List.fromList([0x4e, 0x01, 0x00, 0x00, 0x00, 0x00]);
  print(bip62(script));
  // => false

  script = Uint8List.fromList([0x00, 0x00, 0x00]);
  print(bip62(script));
  // => true
}

LICENSE MIT #

0
likes
140
pub points
3%
popularity

Publisher

verified publishermahsumurebe.com

Following BIP62.3, this module validates that a script uses only minimal data pushes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart_bitcoin_ops, dart_bitcoin_pushdata

More

Packages that depend on dart_minimaldata