You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sign.json 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "signParameters",
  4. "type": "object",
  5. "properties": {
  6. "txJSON": {
  7. "type": "string",
  8. "description": "Transaction represented as a JSON string in rippled format."
  9. },
  10. "secret": {
  11. "type": "string",
  12. "format": "secret",
  13. "description": "The secret of the account that is initiating the transaction. (This field cannot be used with keypair)."
  14. },
  15. "keypair": {
  16. "type": "object",
  17. "properties": {
  18. "privateKey": {
  19. "type": "privateKey",
  20. "description": "The uppercase hexadecimal representation of the secp256k1 or Ed25519 private key. Ed25519 keys are prefixed with 0xED. You can read about how keys are derived [here](https://xrpl.org/cryptographic-keys.html)."
  21. },
  22. "publicKey": {
  23. "type": "publicKey",
  24. "description": "The uppercase hexadecimal representation of the secp256k1 or Ed25519 public key. Ed25519 keys are prefixed with 0xED. You can read about how keys are derived [here](https://xrpl.org/cryptographic-keys.html)."
  25. }
  26. },
  27. "description": "The private and public key of the account that is initiating the transaction. (This field cannot be used with secret).",
  28. "required": ["privateKey", "publicKey"],
  29. "additionalProperties": false
  30. },
  31. "options": {
  32. "type": "object",
  33. "description": "Options that control the type of signature to create.",
  34. "properties": {
  35. "signAs": {
  36. "$ref": "address",
  37. "description": "The account that the signature should count for in multisigning."
  38. }
  39. },
  40. "additionalProperties": false
  41. }
  42. },
  43. "additionalProperties": false,
  44. "required": ["txJSON"],
  45. "oneOf": [
  46. {
  47. "required": ["secret"],
  48. "not": {"required": ["keypair"]}
  49. },
  50. {
  51. "required": ["keypair"],
  52. "not": {"required": ["secret"]}
  53. }
  54. ]
  55. }