There are several reasons why you may need to rotate the notary public keys, or migrate the governance engine notary service, to a new notary service:
- To satisfy compliance and regulatory requirements, such as the Digital Operational Resilience Act (DORA).
- To comply with cybersecurity policies within your institution.
- To migrate from a hosted notary, such an IBM-hosted notary, to a SaaS notary service.
To do this, we use a chain-of-trust process — we configure the new notary service so that it recognizes the public key of the old service, so that it can read the Merkle-tree data created by the old notary.
This page describes the procedure, which involves the following steps:
- Retrieve the old notary collections key from the current notary.
- Configure the new notary service to recognize the old key, and then start it in standby mode.
- Create an intent to migrate the public keys.
- Migrate to the new notary by scaling down the old notary, and migrating the anti-rewind file to the new notary.
The details are as follows:
The first step is to use the Ripple Custody (Vault) API to retrieve the old notary collections public key from the system properties, so that we can register this key with the new notary.
To do this:
Call the List system properties operation, with query parameter
id=NOTARY_COLLECTIONS_KEY.Copy the
items[0].data.value.publicKey.value.
The response body is similar to the following:
{
"items": [
{
"data": {
"id": "NOTARY_COLLECTIONS_KEY",
"value": {
"publicKey": {
"value": "MCowBQYDK2VwAyEApXE1AfYVmeDN/0cAcNidEJ4IJGDwpL2MyFEb04c1F0A=",
"type": "PublicKey"
}
},
"metadata": {
"description": null,
"revision": 1,
"createdAt": "2025-07-14T12:23:44.653Z",
"createdBy": {
"id": "f0ca2fb4-369f-4617-aaa3-6a2f3370e931",
"domainId": "5cd224fe-193e-8bce-c94c-c6c05245e2d1"
},
"lastModifiedAt": "2025-07-14T12:23:44.653Z",
"lastModifiedBy": {
"id": "f0ca2fb4-369f-4617-aaa3-6a2f3370e931",
"domainId": "5cd224fe-193e-8bce-c94c-c6c05245e2d1"
},
"customProperties": {}
},
"type": "NotaryCollectionsKeySystemProperty",
"access": "ReadOnly"
},
"signature": "<SIGNATURE>",
"signingKey": "<SIGNINGKEY>"
}
],
"count": 1
}The next step is to register the old notary key with the new notary, and launch it in standby mode. This generates all the new public keys for the collections, messaging, and API calls, that you need for the next step.
To do this:
Insert the old public key into the new notary service, and start the service in standby mode.
Check the log files for the notary service. This will contain the following six items:
- Migration key material
- New trusted collections public key
- New messaging public key
- New API public key
- Previous notary public key
- Previous notary public key signature
The next step is to submit an intent to execute the key migration, using the information generated by the new notary. When you approve and sign this intent, this registers both the old and new public keys with Ripple Custody (Vault) in preparation for restarting the new notary.
To do this:
In the Custody API, call the the Propose an intent operation with the
v0_AddTrustedPublicKeysForMigrationintent. (For more information about requesting intents, see Request a change with an intentCopy the log information retrieved above, into the six payload fields for the intent:
newKeyMaterialnewCollectionSigningPublicKeynewMessageSigningPublicKeynewApiSigningPublicKeycurrentCollectionSigningPublicKeycurrentCollectionSigningPublicKeySignature
Approve and sign the intent.
To verify that these have been registered, you can call the following API operations:
Note: At this point the old notary is still active, and can continue to process intents using the current (old) public keys, until you are ready to migrate to the new notary.
When you are ready migrate to the new notary, the final step is to scale down the old notary, and use the Disaster Recovery procedure to recover the anti-rewind file (ARF), and launch the new notary in recovery mode. This recovers the state of the Ripple Custody (Vault) system so that you can re-launch in regular operation mode. (For more information about the the anti-rewind file (ARF), see Anti-rewind file.)
Note: Before migrating to the new notary, it is recommended to allow any intents in progress to complete.
To migrate to the new notary, do this:
When ready to migrate, scale down the old notary instance.
Follow the Disaster recovery procedure described in Recover your anti-rewind file to generate a signed manifest for the anti-rewind file (ARF), and pass the manifest and signature to the governance engine.
Restart the governance engine, in anti-rewind-file recovery mode, to rebuild the ARF.
To verify, you can call any of the following API operations, and verify the publicKey and that the
revisionnumber is updated.
- Remove the
ANTI_REWIND_RECOVERY_*environment variables and restart the governance engine again.
The governance engine is now out of recovery mode and back in regular operation mode.
Once migration is complete, the new notary operates as the active governance notary service.