VaultServiceKt
Keywords: net.corda.core.node.services.VaultServiceKt class
Date: 2023-09-18

net.corda.core.node.services

## Class VaultServiceKt

- net.corda.core.node.services.VaultServiceKt

-     public class VaultServiceKt

- - ### Field Detail

    - #### MAX_CONSTRAINT_DATA_SIZE

          public static int MAX_CONSTRAINT_DATA_SIZE

      The maximum permissible size of contract constraint type data (for storage in vault states database table).

      This value establishes an upper limit of a CompositeKey with up to MAX_NUMBER_OF_KEYS_IN_SIGNATURE_CONSTRAINT keys stored in. However, note this assumes a rather conservative upper bound per key. For reference, measurements have shown the following numbers for each algorithm:

      - 2048-bit RSA keys: 1 key -> 294 bytes, 2 keys -> 655 bytes, 3 keys -> 961 bytes

      - 256-bit ECDSA (k1) keys: 1 key -> 88 bytes, 2 keys -> 231 bytes, 3 keys -> 331 bytes

      - 256-bit EDDSA keys: 1 key -> 44 bytes, 2 keys -> 140 bytes, 3 keys -> 195 bytes

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### VaultServiceKt

          public VaultServiceKt()