clean previous image hash endpoint (#177)

This commit is contained in:
turboblitz
2025-02-19 18:27:36 -08:00
committed by GitHub
parent 93a76cedc3
commit 4a0d873584

View File

@@ -6,7 +6,6 @@ import { getDscCommitmentEvents } from '../application/getEvents';
import { MerkleTreeService } from '../application/tree-reader/leanImtService';
import { getContractInstanceRoot } from '../application/tree-reader/getTree';
import { getCscaTree } from '../application/tree-reader/cscaTreeService';
import { IMAGE_HASH } from '../../../../../common/src/constants/constants';
import { getCSCAFromSKIApi } from '../application/skiPem';
import { PCR0Contract } from '../application/pcr0/pcr0';
@@ -480,28 +479,6 @@ export const ContractsController = new Elysia()
}
}
)
.get(
'image-hash',
async () => {
return {
status: 'success',
data: [IMAGE_HASH]
};
},
{
response: {
200: t.Object({
status: t.String(),
data: t.Array(t.String()),
})
},
detail: {
tags: ['Constants'],
summary: 'Get image hash constant',
description: 'Retrieve the image hash constant used in the system'
}
}
)
.get(
'csca-from-ski/:ski',
async ({ params }) => {