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.

generate-x-address.json 1.4KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "generateXAddressParameters",
  4. "type": "object",
  5. "properties": {
  6. "options": {
  7. "type": "object",
  8. "description": "Options to control how the address and secret are generated.",
  9. "properties": {
  10. "entropy": {
  11. "type": "array",
  12. "items": {
  13. "type": "integer",
  14. "minimum": 0,
  15. "maximum": 255
  16. },
  17. "description": "The entropy to use to generate the seed. Must be an array of length 16 with values from 0-255 (16 bytes of entropy)"
  18. },
  19. "algorithm": {
  20. "type": "string",
  21. "enum": ["ecdsa-secp256k1", "ed25519"],
  22. "description": "The digital signature algorithm to generate an address for. Can be `ecdsa-secp256k1` (default) or `ed25519`."
  23. },
  24. "test": {
  25. "type": "boolean",
  26. "description": "Specifies whether the address is intended for use on a test network such as Testnet or Devnet. If `true`, the address should only be used for testing, and starts with `T`. If `false`, the address should only be used on Mainnet, and starts with `X`."
  27. },
  28. "includeClassicAddress": {
  29. "type": "boolean",
  30. "description": "Specifies whether the classic address should also be included in the returned payload."
  31. }
  32. },
  33. "additionalProperties": false
  34. }
  35. },
  36. "additionalProperties": false
  37. }