hexFromSig static method
Implementation
static String hexFromSig(Signature sig) {
final String s = slice(h(sig.s.toRadixString(16)));
final String r = slice(h(sig.r.toRadixString(16)));
final int shl = s.length ~/ 2;
final int rhl = r.length ~/ 2;
final String sl = h(shl.toRadixString(16));
final String rl = h(rhl.toRadixString(16));
return '30${h((rhl + shl + 4).toRadixString(16))}02$rl${r}02$sl$s';
}