mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
clean previous image hash endpoint (#177)
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user