0.6.9.a Arroyo Toad

Quick fix
This commit is contained in:
Christian Risi
2024-12-07 18:45:01 +00:00
parent fa71d33a53
commit e6b1f8d5ea
9 changed files with 141 additions and 22 deletions

View File

@@ -2,7 +2,7 @@ import { DeviceType } from "../enums/DeviceType.ts";
import { MessageType } from "../enums/MessageType.ts";
import { SignatureType } from "../enums/SignatureType.ts";
import { Field } from "./Field.ts";
import { DeviceLocation } from "./Location.ts";
import { DeviceLocation } from "./DeviceLocation.ts";
export class Message {
public version: number;

View File

@@ -1,2 +1,10 @@
export {Field} from "./classes/Field.ts";
export {DeviceLocation} from "./classes/DeviceLocation.ts"
export {Message} from "./classes/Message.ts"
console.log("Hu")
export {DeviceType} from "./enums/DeviceType.ts"
export {MessageType} from "./enums/MessageType.ts"
export {SignatureType} from "./enums/SignatureType.ts"
export {deserializerV1} from "./utils/deserializer.ts"
export {pem2_P256key} from "./utils/signatureVerifier.ts"

View File

@@ -3,7 +3,7 @@ import { Message } from "../classes/Message.ts";
import { DeviceType } from "../enums/DeviceType.ts";
import { MessageType } from "../enums/MessageType.ts";
import { SignatureType } from "../enums/SignatureType.ts";
import { DeviceLocation } from "../classes/Location.ts";
import { DeviceLocation } from "../classes/DeviceLocation.ts";
import { signatureVerifierV1 } from "./signatureVerifier.ts";
import * as mod from "node:crypto";

View File

@@ -29,7 +29,7 @@ export async function signatureVerifierV1(
);
}
export async function pem2key(filePath: string) {
export async function pem2_P256key(filePath: string) {
const publicKeyBytes = await Deno.readFile(filePath);
const pemKey = new TextDecoder().decode(publicKeyBytes);