File tree Expand file tree Collapse file tree
modules/express/src/typedRoutes/api/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,15 +2,8 @@ import * as t from 'io-ts';
22import { httpRoute , httpRequest , optional } from '@api-ts/io-ts-http' ;
33import { BitgoExpressError } from '../../schemas/error' ;
44
5- /**
6- * Request body for decrypting data
7- *
8- * Decrypt a ciphertext generated by encrypt route with provided password
9- */
105export const DecryptRequestBody = {
11- /** The encrypted ciphertext string to decrypt */
126 input : t . string ,
13- /** The password used as the decryption key (must match the password used to encrypt) */
147 password : optional ( t . string ) ,
158} ;
169
Original file line number Diff line number Diff line change @@ -2,17 +2,9 @@ import * as t from 'io-ts';
22import { httpRoute , httpRequest , optional } from '@api-ts/io-ts-http' ;
33import { BitgoExpressError } from '../../schemas/error' ;
44
5- /**
6- * Request body for encrypting data
7- *
8- * Symmetrically encrypt an arbitrary message with provided password
9- */
105export const EncryptRequestBody = {
11- /** The plaintext string to encrypt */
126 input : t . string ,
13- /** The password used as the encryption key */
147 password : optional ( t . string ) ,
15- /** Additional authenticated data included in encryption but not encrypted itself */
168 adata : optional ( t . string ) ,
179} ;
1810
You can’t perform that action at this time.
0 commit comments