# US 2023/0273979 A1 · Cryptographically managing license compatibility

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273979 A1
- Document ID: US20230273979A1
- Status: Published application
- Kind: A1
- Application number: 18/143,287
- Filed: 2023-05-04
- Published: 2023-08-31
- Earliest claimed: 2019-08-30
- Assignees: T-Mobile USA, Inc.
- Applicants: T-Mobile USA, Inc.
- Inventors: Aaron Drake; Lee Miller London
- Web page: https://patentgrep.com/patent/US20230273979A1

## CPC

- G06F 21/105: {Arrangements for software license management or administration, e.g. for managing licenses at corporate level}
- G06F 21/125: {by manipulating the program code, e.g. source code, compiled code, interpreted code, machine code}
- G06F 21/16: Program or content traceability, e.g. by watermarking
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3247: {involving digital signatures}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This disclosure describes techniques for implementing a blockchain to manage license compatibility. The techniques include parsing a code segment in a version of source code based on one or more parsing parameters, wherein the code segment is associated with a transaction and distributed under a license. Thereafter, one or more blocks are inserted onto a blockchain distributed ledger recording the transaction. Upon receiving an updated version of the source code comprising a change to at least one code segment associated with a new transaction, additional blocks are inserted onto the ledger recording the new transaction. Based at least on the transaction recorded in the blocks, the license associated with the version of the source code is identified. Additionally, a flag may indicate license incompatibility with the license if the change to at least one code segment associated with the new transaction violates a license restriction of the identified license.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving source code comprising at least one code segment, the at least one code segment associated with a transaction and distributed under a license;
generating a hash value for the code segment associated with the transaction from a hash function applied to the at least one code segment;
comparing the hash value of the at least one code segment against a related database entry in a database of known hash values of code segment associated with license restrictions;
identifying the license in response to determining that the hash value is equivalent to a known hash value;
determining that proposed usage of the at least one code segment violates restrictions of the license;
generating a flag indicating license incompatibility;
presenting the flag indicating the license incompatibility; and
generating a recommendation to resolve the license incompatibility based at least on the restrictions of the license.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
receiving additional source code comprising at least one additional code segment, the at least one additional code segment associated with an additional transaction and distributed under an additional license;
generating an additional hash value for the additional code segment associated with the additional transaction from an additional hash function applied to the at least one additional code segment;
comparing the additional hash value of the at least one additional code segment against an additional related database entry in the database of known hash values of code segment associated with license restrictions;
identifying the additional license in response to determining that the additional hash value is equivalent to an additional known hash value;
determining that proposed usage of the at least one additional code segment does not violate restrictions of the additional license; and
bypassing generating an additional recommendation based at least on the restrictions of the additional license.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
generating a digital signature associated with the code segment using the hash value and key;
identify a contributor of the source code associated with the key; and
transmit a request to the contributor for permission to license the source code comprising the at least one segment associated with the transaction.

### Claim 4 (depends on 1)

The method of claim 1, wherein the at least one code segment comprises a module, a method, a library, or a function.

### Claim 5 (depends on 1)

The method of claim 1, wherein the license comprises a free and open-source software license.

### Claim 6 (depends on 1)

The method of claim 1, comprising:
identifying the at least one code segment by parsing the source code using a parsing parameter.

### Claim 7 (depends on 6)

The method of claim 6, wherein the parsing parameter are based at least on a client-side structured language, a programming language, or a scripting language.

### Claim 8

A system, comprising:
one or more non-transitory storage mediums configured to provide stored computer-readable instructions, the one or more non-transitory storage mediums coupled to one or more processors, the one or more processors configured to execute the computer-readable instructions to cause the one or more processors to perform acts comprising:
receiving source code comprising at least one code segment, the at least one code segment associated with a transaction and distributed under a license;
generating a hash value for the code segment associated with the transaction from a hash function applied to the at least one code segment;
comparing the hash value of the at least one code segment against a related database entry in a database of known hash values of code segment associated with license restrictions;
identifying the license in response to determining that the hash value is equivalent to a known hash value;
determining that proposed usage of the at least one code segment violates restrictions of the license;
generating a flag indicating license incompatibility;
presenting the flag indicating the license incompatibility; and
generating a recommendation to resolve the license incompatibility based at least on the restrictions of the license.

### Claim 9 (depends on 8)

The system of claim 8, wherein the acts comprise:
receiving additional source code comprising at least one additional code segment, the at least one additional code segment associated with an additional transaction and distributed under an additional license;
generating an additional hash value for the additional code segment associated with the additional transaction from an additional hash function applied to the at least one additional code segment;
comparing the additional hash value of the at least one additional code segment against an additional related database entry in the database of known hash values of code segment associated with license restrictions;
identifying the additional license in response to determining that the additional hash value is equivalent to an additional known hash value;
determining that proposed usage of the at least one additional code segment does not violate restrictions of the additional license; and
bypassing generating an additional recommendation based at least on the restrictions of the additional license.

### Claim 10 (depends on 8)

The system of claim 8, wherein the acts comprise:
generating a digital signature associated with the code segment using the hash value and key;
identify a contributor of the source code associated with the key; and
transmit a request to the contributor for permission to license the source code comprising the at least one segment associated with the transaction.

### Claim 11 (depends on 8)

The system of claim 8, wherein the at least one code segment comprises a module, a method, a library, or a function.

### Claim 12 (depends on 8)

The system of claim 8, wherein the license comprises a free and open-source software license.

### Claim 13 (depends on 8)

The system of claim 8, wherein the acts comprise:
identifying the at least one code segment by parsing the source code using a parsing parameter.

### Claim 14 (depends on 13)

The system of claim 13, wherein the parsing parameter is based at least on a client-side structured language, a programming language, or a scripting language.

### Claim 15

One or more non-transitory computer-readable media storing computer-executable instructions that upon execution cause one or more processors to perform acts comprising:
receiving source code comprising at least one code segment, the at least one code segment associated with a transaction and distributed under a license;
generating a hash value for the code segment associated with the transaction from a hash function applied to the at least one code segment;
comparing the hash value of the at least one code segment against a related database entry in a database of known hash values of code segment associated with license restrictions;
identifying the license in response to determining that the hash value is equivalent to a known hash value;
determining that proposed usage of the at least one code segment violates restrictions of the license;
generating a flag indicating license incompatibility;
presenting the flag indicating the license incompatibility; and
generating a recommendation to resolve the license incompatibility based at least on the restrictions of the license.

### Claim 16 (depends on 15)

The media of claim 15, wherein the acts comprise:
receiving additional source code comprising at least one additional code segment, the at least one additional code segment associated with an additional transaction and distributed under an additional license;
generating an additional hash value for the additional code segment associated with the additional transaction from an additional hash function applied to the at least one additional code segment;
comparing the additional hash value of the at least one additional code segment against an additional related database entry in the database of known hash values of code segment associated with license restrictions;
identifying the additional license in response to determining that the additional hash value is equivalent to an additional known hash value;
determining that proposed usage of the at least one additional code segment does not violate restrictions of the additional license; and
bypassing generating an additional recommendation based at least on the restrictions of the additional license.

### Claim 17 (depends on 15)

The media of claim 15, wherein the acts comprise:
generating a digital signature associated with the code segment using the hash value and key;
identify a contributor of the source code associated with the key; and
transmit a request to the contributor for permission to license the source code comprising the at least one segment associated with the transaction.

### Claim 18 (depends on 15)

The media of claim 15, wherein the at least one code segment comprises a module, a method, a library, or a function.

### Claim 19 (depends on 15)

The media of claim 15, wherein the license comprises a free and open-source software license.

### Claim 20 (depends on 15)

The media of claim 15, wherein the acts comprise:
identifying the at least one code segment by parsing the source code using a parsing parameter.
