Uint8List payToPubKeyScript(Uint8List publicKey) { return Uint8List.fromList( [publicKey.length, ...publicKey, kOpCheckSig], ); }