put back owners_before and a bugfix in tx model

This commit is contained in:
Scott Sadler 2016-12-13 11:30:01 +01:00
parent 9bb8b33d72
commit e2e3ecb9f4

View File

@ -141,7 +141,6 @@ definitions:
additionalProperties: false additionalProperties: false
required: required:
- amount - amount
- language
- condition - condition
- public_keys - public_keys
properties: properties:
@ -150,8 +149,6 @@ definitions:
description: | description: |
Integral amount of the asset represented by this condition. Integral amount of the asset represented by this condition.
In the case of a non divisible asset, this will always be 1. In the case of a non divisible asset, this will always be 1.
language:
type: string
condition: condition:
description: | description: |
Describes the condition that needs to be met to spend the output. Has the properties: Describes the condition that needs to be met to spend the output. Has the properties:
@ -181,10 +178,11 @@ definitions:
condition. condition.
additionalProperties: false additionalProperties: false
required: required:
- owners_before
- fulfillment - fulfillment
properties: properties:
owners_before: owners_before:
"$ref": "#/definitions/owners_list" "$ref": "#/definitions/public_keys"
description: | description: |
List of public keys of the previous owners of the asset. List of public keys of the previous owners of the asset.
fulfillment: fulfillment:
@ -211,7 +209,8 @@ definitions:
- type: string - type: string
pattern: "^cf:([1-9a-f][0-9a-f]{0,3}|0):[a-zA-Z0-9_-]*$" pattern: "^cf:([1-9a-f][0-9a-f]{0,3}|0):[a-zA-Z0-9_-]*$"
fulfills: fulfills:
type: 'object' anyOf:
- type: 'object'
description: | description: |
Reference to the output that is being spent. Reference to the output that is being spent.
additionalProperties: false additionalProperties: false
@ -220,9 +219,10 @@ definitions:
- txid - txid
properties: properties:
idx: idx:
"$ref": "#definitions/offset" "$ref": "#/definitions/offset"
txid: txid:
"$ref": "#definitions/sha3_hexdigest" "$ref": "#/definitions/sha3_hexdigest"
- type: 'null'
metadata: metadata:
anyOf: anyOf:
- type: object - type: object