dart_minimaldata

Creator: coderz1093

Last updated:

0 purchases

dart_minimaldata Image
dart_minimaldata Images

Languages

Categories

Add to Cart

Description:

dart minimaldata

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
}
copied to clipboard
LICENSE MIT #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.