bitcoin/signature.h: remove struct signature.

It's a wrapper around secp256k1_ecdsa_signature, so use that directly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-01-25 10:03:42 +10:30
parent e3d966c102
commit 1edce4878d
17 changed files with 101 additions and 105 deletions

View File

@@ -25,7 +25,7 @@ class FieldType(object):
return 8
elif typename == 'struct ipv6':
return 16
elif typename == 'struct signature':
elif typename == 'secp256k1_ecdsa_signature':
return 64
elif typename == 'struct pubkey':
return 33
@@ -120,7 +120,7 @@ class Field(object):
# We translate signatures and pubkeys.
if 'signature' in fieldname:
return FieldType('struct signature')
return FieldType('secp256k1_ecdsa_signature')
# We whitelist specific things here, otherwise we'd treat everything
# as a u8 array.