-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeyPackageBundleInterface.php
More file actions
44 lines (36 loc) · 979 Bytes
/
KeyPackageBundleInterface.php
File metadata and controls
44 lines (36 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
/*
* This file is a part of the DiscordPHP-RFC9420 project.
*
* Copyright (c) 2026-present Valithor Obsidion <valithor@discordphp.org>
*
* This file is subject to the MIT license that is bundled
* with this source code in the LICENSE.md file.
*/
namespace MLS\Handshake;
interface KeyPackageBundleInterface
{
/**
* @return KeyPackageInterface[]
*/
public function getKeyPackages(): array;
/**
* Any PSKs or other associated secrets carried alongside the bundle.
* @return array<string,mixed>
*/
public function getAssociatedSecrets(): array;
/**
* Any extensions attached to the bundle.
* @return array
*/
public function getExtensions(): array;
/**
* Verify integrity/signatures for all contained KeyPackages.
*/
public function verifyAll(): bool;
/**
* Serialize the bundle for transport.
*/
public function serialize(): string;
}